﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dtf.Core
{
    /// <summary>
    /// Support bitwise combination
    /// </summary>
    public enum UIEventType
    {
        MenuOpenedEvent = 1,
        MenuClosedEvent = 2,
        WindowOpenedEvent = 4,
        WindowClosedEvent = 8
    }

    public class UIEventArgs : EventArgs
    {
        public UIEventArgs(UIEventType eventType)
        {
            _eventType = eventType;            
        }
        public UIEventType EventType
        {
            get
            {
                return _eventType;
            }
        }

        private UIEventType _eventType;
    }

    public delegate void UIEventHandler(UIItem item, UIEventArgs args);
}
